<?php

namespace app\admin\model\party;

use think\Model;


class PartyType extends Model
{

    

    

    // 表名
    protected $name = 'qsy_party_type';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    public function getStatusList()
    {
        return ['1' => __('Status 1'), '2' => __('Status 2')];
    }

    public function getPidList($where =[])
    {
        $where = array_merge($where,['pid'=>0]);
        return self::where($where)->select();
    }


    public function getTypeList($where =[])
    {
        return self::where($where)->select();
    }





}
